package com.gopay.common.domain.cloud;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 云账户对账文件下载记录表
 * sj.jiao
 * 2017年03月04日
 * www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CLOUD_FILE_DOWNLOAD_INFO")
public class CloudFileDownloadInfo implements Serializable {

	private static final long serialVersionUID = 7563563445077647394L;
	/**
	 * 国付宝流水号
	 */
	private Integer sq;
	/**
	 * 客户ID
	 */
	private String custId;
	/**
	 * 虚拟账户号
	 */
	private String acctId;

	/**
	 * 对账文件类型
	 */
	private String orderType;

	/**
	 * 单日下载次数
	 */
	private int dayDownloadNum = 0;
	
	@Id
    @Column(name = "SQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CLOUD_FILE_DOWNLOAD_INFO_SEQ")
    @SequenceGenerator(name = "CLOUD_FILE_DOWNLOAD_INFO_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "CLOUD_FILE_DOWNLOAD_INFO_SEQ")
	public Integer getSq() {
		return sq;
	}

	public void setSq(Integer sq) {
		this.sq = sq;
	}

	@Column(name="CUST_ID",length = 10,nullable = false)
	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	@Column(name="ACCT_ID",length = 19,nullable = false)
	public String getAcctId() {
		return acctId;
	}

	public void setAcctId(String acctId) {
		this.acctId = acctId;
	}

	@Column(name="ORDER_TYPE",length = 2,nullable = false)
	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	@Column(name="DAY_DOWNLOAD_NUM")
	public int getDayDownloadNum() {
		return dayDownloadNum;
	}

	public void setDayDownloadNum(int dayDownloadNum) {
		this.dayDownloadNum = dayDownloadNum;
	}
}
